const axios = require('axios')

module.exports = {
  get: (req, res) => {
    const info = {
      ...req.body,
    }
    const sql = `insert into ev_record set ?`
    db.query(sql, info, (err, rel) => {
      if (err) return res.cc(err)
      if (rel.affectedRows !== 1) return res.cc('发布失败')
      res.cc('发布成功', 200)
    })
  },
}
